package com.nick.proxy;

/**
 * Created by xiaobao on 2017/7/6.
 */
public class Translator implements IHello {
    private IHello customer;

    public Translator(IHello customer) {
        this.customer = customer;
    }

    public void hello() {
        customer.hello();
        System.out.println("Start translate...");
        System.out.println("你好，我叫尼克，来自中国。");
        System.out.println("Finished translating.");
    }
}
